package com.cdream.bank1.seata.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.cdream.bank.domain.AccountInfo;
import io.seata.spring.annotation.GlobalTransactional;
import org.springframework.transaction.annotation.Transactional;

/**
 * <p>
 *  服务类
 * </p>
 *
 * @author zs
 * @since 2021-08-29
 */
public interface AccountInfoService extends IService<AccountInfo> {

    //张三转账
    @GlobalTransactional
    @Transactional
    void updateAccountBalance(String accountNo, Double amount);
}
